/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dog.model;

import java.util.ArrayList;
import java.util.List;


/**
 *
 * User: Kuttubek Aidaraliev
 * Date: 02.04.2010
 * Time: 08:52:04
 */

@SuppressWarnings({"JpaAttributeTypeInspection"})
public class Customer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String number;
    private String codeName;
    private String officialName;
    private String address;
    private String phone;
    private Region region;
    private String fax;
    private String email;
    private String website;
    private List<ContactPerson> contactPersons = new ArrayList<ContactPerson>();
    private Requisite requisite;

    public Customer() {
        this.contactPersons = new ArrayList<ContactPerson>();
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public String getOfficialName() {
        return officialName;
    }

    public void setOfficialName(String officialName) {
        this.officialName = officialName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Region getRegion() {
        return region;
    }

    public void setRegion(Region region) {
        this.region = region;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public List<ContactPerson> getContactPersons() {
        return contactPersons;
    }

    public void setContactPersons(List<ContactPerson> contactPersons) {
        this.contactPersons = contactPersons;
    }

    public Requisite getRequisite() {
        return requisite;
    }

    public void setRequisite(Requisite requisite) {
        this.requisite = requisite;
    }

    @Override
    public String toString() {
        return "com.dog.model.Customer[id=" + getId() + "]";
    }
}
